package com.headwind.logistics.log.mapper;

import com.headwind.logistics.log.pojo.FunctionLog;
import com.headwind.logistics.log.pojo.LoginLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 小恶魔
 * @Date 2020-07-15 9:56
 * @Version 1.0
 * @DESCRIPTION 日志数据访问映射层
 */
public interface LogMapper {

    /**
     * 添加登录日志
     * @param loginLog
     * @return
     */
    int addLoginLog(LoginLog loginLog);

    /**
     * 获取全部登录日志
     * @param page
     * @param rows
     * @return
     */
    List<LoginLog> queryAllLoginLogPage(@Param("page")Integer page,@Param("rows")Integer rows);

    /**
     * 批量删除登录日志
     * @param logIdList
     * @return
     */
    Integer batchDeleteLoginLogById(String[] logIdList);

    /**
     * 添加功能操作日志数据
     * @param functionLog
     * @return
     */
    Integer addFunctionLog(FunctionLog functionLog);
}
